namespace java tutorial

typedef i32 int 

exception InvalidOperation {
  1: i32 what,
  2: string why
}

service ThriftPluresDB
{
  int getToken() throws (1:InvalidOperation ouch),
  
  string opCreate(1:int client, 2:int key, 3:string value) throws (1:InvalidOperation ouch),
  string opRead(1:int client, 2:int key) throws (1:InvalidOperation ouch),
  string opUpdate(1:int client, 2:int key, 3:string value) throws (1:InvalidOperation ouch),
  string opDelete(1:int client, 2:int key) throws (1:InvalidOperation ouch),
  bool opBegin(1:int client) throws (1:InvalidOperation ouch),
  string opEnd(1:int client) throws (1:InvalidOperation ouch),

}
